#Copyright (c) Wansheng Intelligent Corp. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.

cmake_minimum_required (VERSION 3.0.0)
message ("data flow..." ${PROJECT_SOURCE_DIR})
project (dataflow)

if ($ENV{sanitizer} MATCHES yes)
    message("PluginSDK: Debug build, enable sanitizer")
    add_compile_options(-fsanitize=address)
    add_link_options(-fsanitize=address)
endif()

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wno-literal-suffix ")
set(CMAKE_C_FLAGS " --std=c99 ${CMAKE_C_FLAGS}")

if(NOT DEFINED WA_SDK_DIR)
  set (WA_SDK_DIR  ${CMAKE_CURRENT_LIST_DIR}/../../../out/host/wa-iot)
endif()

include(${WA_SDK_DIR}/wa-sdk.cmake)

SET(SOURCES
	main.cpp  
	data_process.cpp
)


add_executable(dataflow ${SOURCES})
target_link_libraries(dataflow ${WA_SDK_LINK_DEPS})
